package configDto

// 配置列表请求
type ListRequest struct {
	Page          int     `json:"page" binding:"required,min=1"`
	Limit         int     `json:"limit" binding:"required,min=1,max=9999"`
	AdminId       *int    `json:"admin_id"`
	Developer     *int    `json:"developer"`
	Device        *int    `json:"device"`
	AdminSearchId *string `json:"admin_search_id"`
	AdminMobile   *string `json:"admin_mobile"`
}

type ListResponse struct {
	List  []Config `json:"list"`
	Total int64    `json:"total"`
	Page  int      `json:"page"`
	Limit int      `json:"limit"`
}

// 配置列表响应
type Config struct {
	Id        int    `json:"id"`
	AdminName string `json:"admin_name"`
	Developer int    `json:"developer"`
	Device    int    `json:"device"`
	CreatedAt string `json:"created_at"`
}
